import { http } from "../thaHttp";

// ---------------------------index-----------------------------------------
//查
export const getReplyData = () =>http.get("/Reply");
//修改
export function Update(res,data,data1) { //axios实例
    return http({
        url: `/${res}/${data.id}`, //请求地址 Reply
        method: 'patch', //请求的方式
        data:data1//需要传输的数据
    })
}
//删除
export function Del(res,data) { //axios实例
    return http({
        url: `/${res}/${data.id}`, //请求地址 Reply
        method: 'delete', //请求的方式

    })
}
// ---------------------------replyEchart-----------------------------------------
//查
export const getReplyEchart = () =>http.get("/replyEchart");

// ---------------------------replyOrder-----------------------------------------
//查
export const getReplyOrderData = () =>http.get("/replyOrder");
